<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询历史欠费信息</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
	function checkForm() {
		var houseId = document.forms[0].houseId.value;
		var ownerName = document.forms[0].ownerName.value;
		var phone = document.forms[0].phone.value;
		var idCard = document.forms[0].idCard.value;

		if (houseId==""&&ownerName==""&&phone==""&&idCard=="") {
			alert("请输入房产编号|业主姓名|手机号码|身份证的任意一项！");
			return false;
		}
		if (houseId != "" && houseId.length!=11) {
			alert("请输入11位房产编号！");
			return false;
		} 
		return true;
	}
</script>
</head>
<body>
<html:form action="historyDebtInput.do?method=show" method="post" onsubmit="return checkForm();">
  <table align="center" width="80%" border="0">
    
    <tr>
      <td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">房产历史欠费信息查询</td>
    </tr>
    <tr><td>
    <table align="center" class="tableline" cellspacing="1" cellpadding="0" border="0">
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">房产编号:</td>
      <td width="773" bgcolor="#ffffff">
        &nbsp;<html:text property="houseId"/>
        <font color="red"></font>&nbsp;&nbsp;<span style="color:#5f9c12;">请输入11位数字，例如02030110001</span>
      </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">业主姓名:</td>
      <td width="773" bgcolor="#ffffff">
        &nbsp;<html:text property="ownerName"/>
        <font color="red"></font>&nbsp;
      </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">业主手机:</td>
      <td width="773" bgcolor="#ffffff">
        &nbsp;<html:text property="phone"/>
        <font color="red"></font>&nbsp;
      </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">业主身份证:</td>
      <td width="773" bgcolor="#ffffff">
        &nbsp;<html:text property="idCard"/>
        &nbsp;&nbsp;<html:submit value="历史欠费信息查询" />&nbsp;<font color="red">${billNotFoundError }</font>
      </td>
    </tr>
    </table>
    </td></tr>
  </table>
</html:form>  
</body>
</html>